home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Mark Pilgrim / Kant Generator Pro 1.0.1 / source / kode new / kant.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-30  |  460 b   |  28 lines  |  [TEXT/MMCC]

  1. #include "kant.h"
  2. #include "graphics.h"
  3. #include "window layer.h"
  4.  
  5. Boolean            gAlwaysResolve;
  6. short            gSpeedDelay;
  7. FSSpec            gModuleFS;
  8. Boolean            gUseDefault;
  9.  
  10. void InitTheProgram(void)
  11. {
  12. }
  13.  
  14. Boolean ShutDownTheProgram(void)
  15. {
  16.     WindowPtr        theWindow;
  17.     
  18.     while ((theWindow=GetFrontDocumentWindow())!=0L)
  19.         if (!CloseTheWindow(theWindow))
  20.             return FALSE;
  21.     
  22.     while ((theWindow=FrontWindow())!=0L)
  23.         if (!CloseTheWindow(theWindow))
  24.             return FALSE;
  25.     
  26.     return TRUE;
  27. }
  28.